package com.zsl.model;

/**
 * 订单详细条目表
 * 用于描述订单内购买信息
 */
public class OrderItem {
    private String id;      //请求详细条目id
    private Integer num;    //请求书本数量
    private Float price;    //请求总价
    private String orderInfo_id;    //请求信息id
    private String book_id;     //书本id
    private String book_generate_name;
    private String is_deleted;  //是否删除

    public OrderItem() {
    }


    public OrderItem(String id, Integer num, Float price, String orderInfo_id, String book_id, String book_generate_name) {
        this.id = id;
        this.num = num;
        this.price = price;
        this.orderInfo_id = orderInfo_id;
        this.book_id = book_id;
        this.book_generate_name = book_generate_name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getOrderInfo_id() {
        return orderInfo_id;
    }

    public void setOrderInfo_id(String orderInfo_id) {
        this.orderInfo_id = orderInfo_id;
    }

    public String getBook_id() {
        return book_id;
    }

    public void setBook_id(String book_id) {
        this.book_id = book_id;
    }

    public String getBook_generate_name() {
        return book_generate_name;
    }

    public void setBook_generate_name(String book_generate_name) {
        this.book_generate_name = book_generate_name;
    }

    public String getIs_deleted() {
        return is_deleted;
    }

    public void setIs_deleted(String is_deleted) {
        this.is_deleted = is_deleted;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "id='" + id + '\'' +
                ", num=" + num +
                ", price=" + price +
                ", orderInfo_id='" + orderInfo_id + '\'' +
                ", book_id='" + book_id + '\'' +
                ", book_generate_name='" + book_generate_name + '\'' +
                ", is_deleted='" + is_deleted + '\'' +
                '}';
    }
}
